<#assign module="sys"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/bootstrap-switch.min.css">
</@override>
<@override name="body">
<div class="row">
    <div class="col-md-12">

        <div class="tabbable"> <!-- Only required for left/right tabs -->
            <ul class="nav nav-tabs">
                <li id="tab1click" class="active"><a href="#tab1" data-toggle="tab">基础配置</a></li>
                <li><a id="tab6click" href="#tab6" data-toggle="tab">APP设置</a></li>
			    <@zhifu>
			    <li><a id="tab4click" href="#tab4" data-toggle="tab">支付配置</a></li>
                </@zhifu>
                <li><a id="tab5click" href="#tab5" data-toggle="tab">派单设置</a></li>
                <li><a id="tab5click" href="#tab7" data-toggle="tab">推送设置</a></li>
                <li><a id="tab5click" href="#tab8" data-toggle="tab">安全设置</a></li>
            </ul>
            <form id="submit_form" action="${ctx}/setting/set" class="form-horizontal" role="form" method="post">
                <div class="tab-content">
                    <div class="tab-pane in active" id="tab1">
                        <div class="panel panel-default margin-top">
                            <div class="panel-heading">基础配置</div>
                            <div class="panel-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>系统网址：</label>
                                    <div class="col-sm-5">
                                        <input type="url" class="form-control" name="webUrl"
                                               value="${setting.webUrl?if_exists}" id="webUrl">
                                        <span class="help-block">配置系统网址。请务必填写正确，如http(s)://em.easymi.com</span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>工作开始时间：</label>
                                    <div class="col-sm-5">
                                        <select name="workBegin" class="form-control">
							        		<#list 0..23 as t>
                                                <option value="${t}"
                                                        <#if setting.workBegin == t>selected</#if>>${t}</option>
                                            </#list>
                                        </select>
                                        <span class="help-block">选择工作的开始时间，结束时间为开始时间加上24，晚上12点为0时。</span>
                                    </div>
                                </div>
							
							    <#assign infoFeeTypeShow="false"/>
							    <@zhuan>
                                    <#assign infoFeeTypeShow="true"/>
                                </@zhuan>
							    <@pao>
                                    <#assign infoFeeTypeShow="true"/>
                                </@pao>
							    <@freight>
                                    <#assign infoFeeTypeShow="true"/>
                                </@freight>
							    <@zhuanxian>
                                    <#assign infoFeeTypeShow="true"/>
                                </@zhuanxian>
							    
							    <#if infoFeeTypeShow=="true">
							    	<div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>保险费/信息费扣取时间：</label>
                                        <div class="col-sm-5">
                                            <select name="infoFeeType" class="form-control">
                                                <option value="none"  <#if setting.infoFeeType == 'none'>selected</#if>>
                                                    不扣取
                                                </option>
                                                <option value="acceptTask"
                                                        <#if setting.infoFeeType == 'acceptTask'>selected</#if>>接单时
                                                </option>
                                                <option value="finishTask"
                                                        <#if setting.infoFeeType == 'finishTask'>selected</#if>>完成时
                                                </option>
                                            </select>
                                            <span class="help-block">设置在订单的哪个时间点扣取服务人员的保险费/信息费。</span>
                                        </div>
                                    </div>
                                </#if>
							    
							    <@zhuan>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>保险费/信息费扣取金额(专车)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="infoFeeZhuan"  min="0"
                                                   value="${setting.infoFeeZhuan?if_exists}" id="infoFeeZhuan">
                                            <span class="input-group-addon">元</span>
                                        </div>
                                        <span class="help-block">设置专车订单扣取服务人员每单保险费/信息费的金额。0元不产生记录</span>
                                    </div>
                                </div>
                                </@zhuan>
							    
							    <@freight>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>保险费/信息费扣取金额(货运)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="infoFeeFreight" required
                                                   min="0" value="${setting.infoFeeFreight?if_exists}">
                                            <span class="input-group-addon">元</span>
                                        </div>
                                        <span class="help-block">设置货运订单扣取服务人员每单保险费/信息费的金额。0元不产生记录</span>
                                    </div>
                                </div>
                                </@freight>
							    <@pao>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>保险费/信息费扣取金额(跑腿)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="infoFeeErrand"
                                                   min="0" value="${setting.infoFeeErrand?if_exists}" id="infoFeeErrand">
                                            <span class="input-group-addon">元</span>
                                        </div>
                                        <span class="help-block">设置跑腿订单扣取服务人员每单保险费/信息费的金额。0元不产生记录</span>
                                    </div>
                                </div>
                                </@pao>
							    
							    <@zhuanxian>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>保险费/信息费扣取金额(快车)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="infoFeeCityline"
                                                   min="0" value="${setting.infoFeeCityline?if_exists}" id="infoFeeCityline">
                                            <span class="input-group-addon">元</span>
                                        </div>
                                        <span class="help-block">设置快车订单扣取服务人员每单保险费/信息费的金额。0元不产生记录</span>
                                    </div>
                                </div>
                                </@zhuanxian>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>优惠劵是否参与提成：</label>
                                    <div class="col-sm-5">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="参与"
                                             data-off-label="不参与">
                                            <input type="checkbox" name="couponTicheng"
                                                   <#if setting.couponTicheng>checked</#if> />
                                        </div>
                                        <span class="help-block">是否让优惠劵金额参与服务人员和公司提成计算。</span>
                                    </div>
                                </div>
                                <!-- 随机红包 -->
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>是否开启随机红包：</label>
                                    <div class="col-sm-5">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开" data-off-label="关">
                                            <input type="checkbox" name="randomRedPacket"
                                                   <#if setting.randomRedPacket>checked</#if> />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>最大随机红包金额生成周期：</label>
                                    <div class="col-sm-5">

                                            <select class="form-control" name="randomRedPacketCycle" value="${setting.randomRedPacketCycle?if_exists}">
                                                <option value="week" <#if setting.randomRedPacketCycle == 'week'>selected</#if> >每个周</option>
                                                <option value="month" <#if setting.randomRedPacketCycle == 'month'>selected</#if> >每个月</option>
                                            </select>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>随机红包最大金额：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="randomRedPacketMoney"
                                                   min="0" value="${setting.randomRedPacketMoney?if_exists}" id="randomRedPacketMoney">
                                            <span class="input-group-addon">元</span>
                                        </div>
                                    </div>
                                </div>

                                <!--向监管平台上传信息开关-->
							    <@jgpt>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>是否向监管平台上传信息：</label>
                                    <div class="col-sm-5">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="上传"
                                             data-off-label="不上传">
                                            <input type="checkbox" name="upPlatformInfo"
                                                   <#if setting.upPlatformInfo>checked</#if> />
                                        </div>
                                    </div>
                                </div>
                                </@jgpt>
                                <!--双因子验证开关-->
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>双因子验证：</label>
                                    <div class="col-sm-5">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开"
                                             data-off-label="关">
                                            <input type="checkbox" name="doubleFactor"
                                                   <#if setting.doubleFactor>checked</#if> />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>自动收回时间：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="revokeTime"  min="0"
                                                   value="${setting.revokeTime?if_exists}" id="revokeTime">
                                            <span class="input-group-addon">秒钟</span>
                                        </div>
                                        <span class="help-block">如果服务人员在该配置时间内没有接单，那么系统将自动收回。包含所有业务。</span>
                                    </div>
                                </div>
                                <!--开启自动消单-->
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>专线开启自动消单：</label>
                                    <div class="col-sm-5">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开"
                                             data-off-label="关">
                                            <input type="checkbox" name="zhuanXianAutoCancelOrder"
                                                   <#if setting.zhuanXianAutoCancelOrder?if_exists>checked</#if> />
                                        </div>
                                    </div>
                                </div>
                                <!--自动消单时间-->
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>专线自动消单时间(毫秒)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="zhuanXianAutoCancelOrderTime" min="0"
                                                   value="${setting.zhuanXianAutoCancelOrderTime!}" id="zhuanXianAutoCancelOrderTime"/>
                                            <span class="input-group-addon">秒钟</span>
                                        </div>
                                        <span class="help-block">如果订单在超过时间依然无人结单，那么系统将自动消单。包含所有业务。</span>
                                    </div>
                                </div>

                                <!--开启自动消单-->
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>快车开启自动消单：</label>
                                    <div class="col-sm-5">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开"
                                             data-off-label="关">
                                            <input type="checkbox" name="kuaicheAutoCancelOrder"
                                                   <#if setting.kuaicheAutoCancelOrder?if_exists>checked</#if> />
                                        </div>
                                    </div>
                                </div>
                                <!--自动消单时间-->
                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>快车自动消单时间(毫秒)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="kuaicheAutoCancelOrderTime" min="0"
                                                   value="${setting.kuaicheAutoCancelOrderTime!}" id="kuaicheAutoCancelOrderTime">
                                            <span class="input-group-addon">秒钟</span>
                                        </div>
                                        <span class="help-block">如果订单在超过时间依然无人结单，那么系统将自动消单。包含所有业务。</span>
                                    </div>
                                </div>

							    
							    <@zhuanxian>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>预约订单时间(快车)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="bookTimeZhuanxian"
                                                   min="0" value="${setting.bookTimeZhuanxian?if_exists}" id="bookTimeZhuanxian">
                                            <span class="input-group-addon">分钟</span>
                                        </div>
                                        <span class="help-block">快车订单下单时，如果预约时间减去下单时间之差大于或等于填写的分钟数，那么该订单为预约订单。0不生效。</span>
                                    </div>
                                </div>
                                </@zhuanxian>
							    <@zhuan>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>预约订单时间(专车)：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="bookTimeZhuan"
                                                   min="0" value="${setting.bookTimeZhuan?if_exists}" id="bookTimeZhuan">
                                            <span class="input-group-addon">分钟</span>
                                        </div>
                                        <span class="help-block">专车订单下单时，如果预约时间减去下单时间之差大于或等于填写的分钟数，那么该订单为预约订单。0不生效。</span>
                                    </div>
                                </div>
                                </@zhuan>
                            <#--
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>是否允许直接呼叫服务人员：</label>
                                <div class="col-sm-5">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="允许" data-off-label="不允许">
                                        <input type="checkbox" name="allowCallDriver" <#if setting.allowCallDriver>checked</#if> />
                                    </div>
                                    <span class="help-block">是否允许用户通过手机App直接拨打服务人员电话进行下单;如果不允许,用户呼叫服务人员将变为呼叫服务人员对应公司的APP电话。</span>
                                </div>
                            </div>
                            -->

                            <#--
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>最低上线金额：</label>
                                <div class="col-sm-5">
                                    <div class="input-group">
                                      <input type="number" class="form-control" name="lowestWorkVirtual" required min="0" value="${setting.lowestWorkVirtual?if_exists}">
                                      <span class="input-group-addon">元</span>
                                    </div>
                                    <span class="help-block">设置服务人员最低上线金额，低于该值不能上线(不能接单)，仅兼职有效，0元不生效。</span>
                                </div>
                            </div>
                            -->

                            <#--
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>调度中心电话：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="serviceCallCenter" required value="${setting.serviceCallCenter?if_exists}">
                                    <span class="help-block">不允许用户通过手机App直接拨打服务人员电话时，将呼叫此号码。</span>
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>公司网址：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="companyWebURL" required value="${setting.companyWebURL?if_exists}">
                                    <span class="help-block">配置公司网站地址，用于在APP中进行显示。</span>
                                </div>
                            </div>
                            -->
                                <input type="hidden" name="companyWebURL" value="${setting.companyWebURL?if_exists}">

                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>客服电话：</label>
                                    <div class="col-sm-9">
                                        <p class="form-control-static">
                                            <label style="padding-right:20px;">
                                                <input type="radio" name="whichServicePhone" value="0"
                                                       <#if setting.whichServicePhone==0>checked</#if>>统一使用主公司电话
                                            </label>
                                            <label>
                                                <input type="radio" name="whichServicePhone" value="1"
                                                       <#if setting.whichServicePhone==1>checked</#if>>使用各自公司电话
                                            </label>
                                            <span class="help-block">选择客户接收短信信息所看到的客服电话</span>
                                        </p>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" id="tab6">
                        <div class="panel panel-default margin-top">
                            <div class="panel-heading">APP设置</div>
                            <div class="panel-body">
                                <div class="col-md-6">
                                    <h4>服务人员端</h4>
                                    <hr/>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>附近服务人员距离:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="nearDriversKm2"
                                                       min="0" value="${setting.nearDriversKm2?if_exists}" id="nearDriversKm2">
                                                <span class="input-group-addon">公里</span>
                                            </div>
                                            <span class="help-block">设置服务人员端显示多少公里范围内的服务人员，0不生效</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>附近服务人员人数:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="nearDriversAmount2"
                                                       min="0" value="${setting.nearDriversAmount2?if_exists}" id="nearDriversAmount2">
                                                <span class="input-group-addon">人</span>
                                            </div>
                                            <span class="help-block">设置服务人员端显示多少服务人员人数，0不生效</span>
                                        </div>
                                    </div>

							    <@pao>
								    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>附近跑腿订单距离:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="nearPaotuiOrdersKm"
                                                       min="0" value="${setting.nearPaotuiOrdersKm?if_exists}" id="nearPaotuiOrdersKm">
                                                <span class="input-group-addon">公里</span>
                                            </div>
                                            <span class="help-block">设置显示多少公里范围内的跑腿订单，0不生效</span>
                                        </div>
                                    </div>
							    	<div class="form-group">
                                        <label class="col-sm-3 control-label">跑腿抢单最大数量:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="errandGrabAmount"
                                                       min="0" value="${setting.errandGrabAmount?if_exists}">
                                                <span class="input-group-addon">单</span>
                                            </div>
                                            <span class="help-block">设置每个跑腿服务人员抢单最大数量,0不生效</span>
                                        </div>
                                    </div>
                                </@pao>
							    
							     <@zhuan> 
							    	<div class="form-group">
                                        <label class="col-sm-3 control-label">专车预约订单同时接单数量:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="zhuanYuyueMax" min="0"
                                                       value="${setting.zhuanYuyueMax?if_exists}">
                                                <span class="input-group-addon">单</span>
                                            </div>
                                            <span class="help-block">设置每个专车服务人员同时接预约订单的最大数量，0 不生效</span>
                                        </div>
                                    </div>
								    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务人员接预约订单时间:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="zhuanYuyueTime" min="0"
                                                       value="${setting.zhuanYuyueTime?if_exists}">
                                                <span class="input-group-addon">分钟</span>
                                            </div>
                                            <span class="help-block">服务人员接预约订单后，距离预约时间在设置的时间内不能在接其他类型的订单，0 不生效。</span>
                                        </div>
                                    </div>
                                 </@zhuan>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务人员提现金额基数</label>
                                        <div class="col-sm-9">
                                            <div class="input-group" id="divMoenyBase">
                                                <input type="number" class="form-control" name="moenyBase" min="0"
                                                       value="${setting.moenyBase?if_exists}"
                                                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
                                                       onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
                                                <span class="input-group-addon">元</span>
                                            </div>
                                            <span class="help-block">设置每个服务人员每次提现金额的基数，且提现金额必须满足是此基数的整数倍，0不生效</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务人员提现金额区间</label>
                                        <div class="col-sm-9">
                                            <div class="input-group" style="float:left">
                                                <input type="number" class="form-control" name="startQuota" min="0"
                                                       value="${setting.startQuota?if_exists}" style="width:100px;"
                                                       onchange="startClike()"
                                                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
                                                       onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
                                                <h5 style="float:left">&nbsp至&nbsp</h5>
                                            </div>
                                            <div class="input-group" id="divStartQuota">
                                                <input type="number" class="form-control" name="endQuota" min="0"
                                                       value="${setting.endQuota?if_exists}" style="width:100px;"
                                                       onchange="endClike()"
                                                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
                                                       onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}">
                                            </div>
                                            <span class="help-block">设置每个服务人员每次提现的金额区间，且区间的最小值和最大值都必须是提现金额基数的整数倍，0不生效</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">提现备注</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="text" class="form-control" name="remarks" min="0"
                                                       value="${setting.remarks?if_exists}" style="width:650px">
                                            </div>
                                            <span class="help-block">设置司机端提现时需要提示的信息</span>
                                        </div>
                                    </div>
                                <#--
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">抢单距离:</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                          <input type="number" class="form-control" name="rushOrderKm" min="0" value="${setting.rushOrderKm?if_exists}">
                                          <span class="input-group-addon">公里</span>
                                        </div>
                                        <span class="help-block">设置服务人员端显示多少公里范围内的订单</span>
                                    </div>
                                </div>
                                -->
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">允许服务人员转单:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="allowDriverZhuandan"
                                                       <#if setting.allowDriverZhuandan>checked</#if> />
                                            </div>
                                            <span class="help-block">是否允许服务人员转单。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">允许服务人员销单:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="allowDriverCancel"
                                                       <#if setting.allowDriverCancel>checked</#if> />
                                            </div>
                                            <span class="help-block">是否允许服务人员销单。</span>
                                        </div>
                                    </div>

                                <#--
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">目的地必填:</label>
                                    <div class="col-sm-9">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开启" data-off-label="关闭">
                                            <input type="checkbox" name="mustToPlace" <#if setting.mustToPlace>checked</#if> />
                                        </div>
                                        <span class="help-block">是否目的地必填。</span>
                                    </div>
                                </div>
                                -->

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">客户信息必填:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="mustMemberInfo"
                                                       <#if setting.mustMemberInfo>checked</#if> />
                                            </div>
                                            <span class="help-block">是否客户信息必填。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">是否允许加价:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="允许"
                                                 data-off-label="不允许">
                                                <input type="checkbox" name="allowModifyCash"
                                                       <#if setting.allowModifyCash>checked</#if> />
                                            </div>
                                            <span class="help-block">服务人员确认订单时是否允许加价。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">是否允许报销费用:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="允许"
                                                 data-off-label="不允许">
                                                <input type="checkbox" name="allowBaoxiao"
                                                       <#if setting.allowBaoxiao>checked</#if> />
                                            </div>
                                            <span class="help-block">是否允许服务人员报销费用。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">允许服务人员代付时余额不足:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="允许"
                                                 data-off-label="不允许">
                                                <input type="checkbox" name="allowHelppayNe"
                                                       <#if setting.allowHelppayNe>checked</#if> />
                                            </div>
                                            <span class="help-block">允许时余额不足可以代付，不允许时余额不足则不能代付，需先充值。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">保险显示:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="显示"
                                                 data-off-label="不显示">
                                                <input type="checkbox" name="insurancesShow"
                                                       <#if setting.insurancesShow>checked</#if> />
                                            </div>
                                            <span class="help-block">司机端是否显示保险。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">注册时是否必须上传图片:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="必须"
                                                 data-off-label="非必须">
                                                <input type="checkbox" name="employApplyImgNessesary"
                                                       <#if setting.employApplyImgNessesary>checked</#if> />
                                            </div>
                                            <span class="help-block">服务人员注册时是否必须上传图片。</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">是否开启代付:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="已开启"
                                                 data-off-label="已关闭">
                                                <input type="checkbox" name="openHelpPay"
                                                       <#if setting.openHelpPay>checked</#if> />
                                            </div>
                                            <span class="help-block">是否允许服务人员使用代付功能。</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">是否绑定手机:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="已开启"
                                                 data-off-label="已关闭">
                                                <input type="checkbox" name="driverBindPhone"
                                                       <#if setting.driverBindPhone>checked</#if> />
                                            </div>
                                            <span class="help-block">司机是否绑定手机, 开启后,服务人员界面出现解绑按钮,司机换手机登陆账号必须解绑</span>
                                        </div>
                                    </div>
							    <@tiaojia>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label">是否开启服务人员调价:</label>
                                    <div class="col-sm-9">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="已开启"
                                             data-off-label="已关闭">
                                            <input type="checkbox" name="justPrice"
                                                   <#if setting.justPrice>checked</#if> />
                                        </div>
                                        <span class="help-block">是否允许服务人员使用调价功能。</span>
                                    </div>
                                </div>
                                </@tiaojia>
                                </div>

                                <div class="col-md-6">
                                    <h4>用户端</h4>
                                    <hr/>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>附近服务人员距离:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="nearDriversKm"
                                                       min="0" value="${setting.nearDriversKm?if_exists}" id="nearDriversKm">
                                                <span class="input-group-addon">公里</span>
                                            </div>
                                            <span class="help-block">设置客户端显示多少公里范围内的服务人员，0不生效</span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>附近服务人员人数:</label>
                                        <div class="col-sm-9">
                                            <div class="input-group">
                                                <input type="number" class="form-control" name="nearDriversAmount"
                                                       min="0" value="${setting.nearDriversAmount?if_exists}" id="nearDriversAmount">
                                                <span class="input-group-addon">人</span>
                                            </div>
                                            <span class="help-block">设置客户端显示多少服务人员人数，0不生效</span>
                                        </div>
                                    </div>
							    
							    <@freight>
							    <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>附近货运服务人员距离:</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="nearFreightDriversKm"
                                                   required min="0" value="${setting.nearFreightDriversKm?if_exists}">
                                            <span class="input-group-addon">公里</span>
                                        </div>
                                        <span class="help-block">设置客户端显示多少公里范围内的服务人员，0不生效</span>
                                    </div>
                                </div>
                                </@freight>

                                <#--
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">会员申请说明：</label>
                                    <div class="col-sm-9">
                                        <textarea rows="5" cols="50" id="memberApplyContent" name="memberApplyContent">${setting.memberApplyContent?if_exists}</textarea>
                                        <span class="help-block">配置会员申请VIP时看到的申请说明。</span>
                                    </div>
                                </div>
                                -->
							    
							    <@pao>
								    <div class="form-group" style="display:none">
                                        <label class="col-sm-3 control-label">跑腿单定价:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="paotuiFixPrice"
                                                       <#if setting.paotuiFixPrice>checked</#if> />
                                            </div>
                                            <span class="help-block">是否允许客户端定价。</span>
                                        </div>
                                    </div>
                                </@pao>
							    
							    <@zhuan>
								    <div class="form-group">
                                        <label class="col-sm-3 control-label">专车下单预付费:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="zhuanchePrePay"
                                                       <#if setting.zhuanchePrePay>checked</#if> />
                                            </div>
                                            <span class="help-block">客户端在下专车订单时是否需要预付费。</span>
                                        </div>
                                    </div>
                                </@zhuan>
							    
							    <@daijia>
								    <div class="form-group">
                                        <label class="col-sm-3 control-label">代驾下单预付费:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="daijiaPrePay"
                                                       <#if setting.daijiaPrePay>checked</#if> />
                                            </div>
                                            <span class="help-block">客户端在下代驾订单时是否需要预付费。</span>
                                        </div>
                                    </div>
                                </@daijia>
							    
							    <@pao>
								    <div class="form-group">
                                        <label class="col-sm-3 control-label">跑腿下单预付费:</label>
                                        <div class="col-sm-9">
                                            <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                                 data-off-label="关闭">
                                                <input type="checkbox" name="paotuiPrePay"
                                                       <#if setting.paotuiPrePay>checked</#if> />
                                            </div>
                                            <span class="help-block">客户端在下跑腿订单时是否需要预付费。</span>
                                        </div>
                                    </div>
                                </@pao>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>客户端下载地址:</label>
                                        <div class="col-sm-9">
                                            <input type="url" class="form-control" name="khurl"
                                                   value="${setting.khurl?if_exists}" id="khurl">
                                            <span class="help-block">设置客户端App下载地址</span>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-3 control-label"><em>*</em>司机端下载地址:</label>
                                        <div class="col-sm-9">
                                            <input type="url" class="form-control" name="sjurl"
                                                   value="${setting.sjurl?if_exists}" id="sjurl">
                                            <span class="help-block">设置司机端App下载地址</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
				<@zhifu>
				<div class="tab-pane" id="tab4">
                    <div class="panel panel-default margin-top">
                        <div class="panel-heading">支付配置</div>
                        <div class="panel-body">

                            <h4>服务人员APP充值金额配置</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>金额1：</label>
                                <div class="col-sm-5">
                                    <input type="number" class="form-control" id="payCash1" name="payCash1" min="1"
                                           max="4998" step="0.1" required value="${setting.payCash1?if_exists}">
                                    <span class="help-block">该金额需大于0并且小于金额2</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>金额2：</label>
                                <div class="col-sm-5">
                                    <input type="number" class="form-control" id="payCash2" name="payCash2" min="2"  step="0.1"
                                           max="4999" required value="${setting.payCash2?if_exists}">
                                    <span class="help-block">该金额需大于金额1并且小于金额3</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>金额3：</label>
                                <div class="col-sm-5">
                                    <input type="number" class="form-control" id="payCash3" name="payCash3" min="3"  step="0.1"
                                           max="5000" required value="${setting.payCash3?if_exists}">
                                    <span class="help-block">该金额需大于金额2并且小于等于5000</span>
                                </div>
                            </div>

                            <h4>支付宝支付配置</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户ID：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="alipayPartnerID"
                                           value="${setting.alipayPartnerID?if_exists}">
                                    <span class="help-block">配置支付宝商户ID。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户账号：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="alipaySellerID"
                                           value="${setting.alipaySellerID?if_exists}">
                                    <span class="help-block">配置支付宝商户账号。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户私钥：</label>
                                <div class="col-sm-5">
                                    <textarea rows="13" cols="90" id="alipayPartnerPrivKey"
                                              name="alipayPartnerPrivKey">${setting.alipayPartnerPrivKey?if_exists}</textarea>
                                    <span class="help-block">配置支付宝商户私钥。</span>
                                </div>
                            </div>

                            <!--
						    <div class="form-group">
						        <label class="col-sm-3 control-label">商户公钥：</label>
						        <div class="col-sm-5">
						        	<textarea rows="5" cols="90" id="alipayPartnerPublicKey" name="alipayPartnerPublicKey">${setting.alipayPartnerPublicKey?if_exists}</textarea>
									<span class="help-block">配置支付宝商户公钥。</span>
								</div>
						    </div>
						    -->

                            <h4>微信支付配置（客户端）</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">客户端微信开发平台应用ID（wxAppID）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxAppID"
                                           value="${setting.wxAppID?if_exists}">
                                    <span class="help-block">配置客户端微信开发平台应用ID。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">客户端应用对应凭证（wxAppSecret）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxAppSecret"
                                           value="${setting.wxAppSecret?if_exists}">
                                    <span class="help-block">配置客户端微信开发平台应用对应的凭证。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">客户端商户号：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxPartnerID"
                                           value="${setting.wxPartnerID?if_exists}">
                                    <span class="help-block">配置客户端商户号。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">客户端商户号密钥：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxPartnerKey"
                                           value="${setting.wxPartnerKey?if_exists}">
                                    <span class="help-block">配置客户端商户号对应的密钥。</span>
                                </div>
                            </div>
                            <h4>微信支付配置（服务端）</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">服务端微信开发平台应用ID（wxAppID）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxAppIDEmploy"
                                           value="${setting.wxAppIDEmploy?if_exists}">
                                    <span class="help-block">配置服务端微信开发平台应用ID。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">服务端应用对应凭证（wxAppSecret）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxAppSecretEmploy"
                                           value="${setting.wxAppSecretEmploy?if_exists}">
                                    <span class="help-block">配置服务端微信开发平台应用对应的凭证。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">服务端商户号：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxPartnerIDEmploy"
                                           value="${setting.wxPartnerIDEmploy?if_exists}">
                                    <span class="help-block">配置服务端商户号。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">服务端商户号密钥：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="wxPartnerKeyEmploy"
                                           value="${setting.wxPartnerKeyEmploy?if_exists}">
                                    <span class="help-block">配置服务端商户号对应的密钥。</span>
                                </div>
                            </div>
                            <h4>银联支付配置</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户ID：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="merId"
                                           value="${setting.merId?if_exists}">
                                    <span class="help-block">配置银联商户ID。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">签名证书密码：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" id="acpsdkSignCertPwd"
                                           name="acpsdkSignCertPwd" value="${setting.acpsdkSignCertPwd?if_exists}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">签名证书：</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="acpsdkSignCertPath"
                                           name="acpsdkSignCertPath" value="${setting.acpsdkSignCertPath?if_exists}"
                                           readonly>
                                </div>
                                <div class="col-sm-2">
                                    <a class="btn btn-info" id="uploadBtn">上传</a>
                                    <input type="file" id="uploadFile" name="uploadFile" style="display:none;">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">敏感信息加密证书：</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="acpProdEnc" name="acpProdEnc"
                                           value="${setting.acpProdEnc?if_exists}" readonly>
                                </div>
                                <div class="col-sm-2">
                                    <a class="btn btn-info" id="uploadBtn2">上传</a>
                                    <input type="file" id="uploadFile2" name="uploadFile" style="display:none;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">验签中级证书：</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="acpProdMiddle" name="acpProdMiddle"
                                           value="${setting.acpProdMiddle?if_exists}" readonly>
                                </div>
                                <div class="col-sm-2">
                                    <a class="btn btn-info" id="uploadBtn3">上传</a>
                                    <input type="file" id="uploadFile3" name="uploadFile" style="display:none;">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">验签根证书：</label>
                                <div class="col-sm-4">
                                    <input type="text" class="form-control" id="acpProdRoot" name="acpProdRoot"
                                           value="${setting.acpProdRoot?if_exists}" readonly>
                                </div>
                                <div class="col-sm-2">
                                    <a class="btn btn-info" id="uploadBtn4">上传</a>
                                    <input type="file" id="uploadFile4" name="uploadFile" style="display:none;">
                                </div>
                            </div>

                            <h4>翼支付配置</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户id（merchantId）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="merchantId"
                                           value="${setting.merchantId?if_exists}">
                                    <span class="help-block">配置翼支付商户id。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户key（merKey）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="merKey"
                                           value="${setting.merKey?if_exists}">
                                    <span class="help-block">配置翼支付商户key。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">商户密码 （mch_pwd）：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="mchPwd"
                                           value="${setting.mchPwd?if_exists}">
                                    <span class="help-block">配置翼支付商户密码。</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">风控信息Json 字符串（RISKCONTROLINFO）：</label>
                                <div class="col-sm-5">
                                    <textarea rows="5" cols="90"
                                              name="riskcontrolinfo">${setting.riskcontrolinfo?if_exists}</textarea>
                                    <span class="help-block">配置翼支付风控信息Json 字符串。</span>
                                </div>
                            </div>
                            <h4>服务人员APP充值金额配置</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>司机推荐奖励金额：</label>
                                <div class="col-sm-5">
                                    <input type="number" class="form-control" id="driverRebateMoney" name="driverRebateMoney" min="1"
                                           max="4998" step="0.1" required value="${setting.driverRebateMoney?if_exists}">
                                    <span class="help-block">该金额需大于0并且小于金额2</span>
                                </div>
                            </div>

                            <h4>百度sdk设置</h4>
                            <hr/>
                            <div class="form-group">
                                <label class="col-sm-3 control-label"><em>*</em>百度sdk设置：</label>
                                <div class="col-sm-5">
                                    <input  class="form-control" id="baiduKey" name="baiduKey" required value="${setting.baiduKey?if_exists}">
                                </div>
                            </div>
                        <#--
                        <div class="form-group">
                            <label class="col-sm-3 control-label">签名（PaySignKey）：</label>
                            <div class="col-sm-5">
                                <textarea rows="5" cols="90" id="wxAppKEY" name="wxAppKEY">${setting.wxAppKEY?if_exists}</textarea>
                                <span class="help-block">配置签名。</span>
                            </div>
                        </div>
                        -->

                        </div>
                    </div>
                </div>
                </@zhifu>

                    <div class="tab-pane" id="tab5">
                        <div class="panel panel-default margin-top">
                            <div class="panel-heading">派单设置</div>
                            <div class="panel-body">

                                <div class="form-group">
                                    <label class="col-sm-3 control-label"><em>*</em>推荐服务人员距离：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="paidanKm" min="0"
                                                   value="${setting.paidanKm?if_exists}" id="paidanKm">
                                            <span class="input-group-addon">公里</span>
                                        </div>
                                        <span class="help-block">设置调度列表模式中显示多少公里范围内的推荐服务人员</span>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">检测服务人员是否在线频率：</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input type="number" class="form-control" name="autoOfflineTime" min="0"
                                                   value="${setting.autoOfflineTime?if_exists}">
                                            <span class="input-group-addon">分钟</span>
                                        </div>
                                        <span class="help-block">如果服务人员没有在上述时间周期内上传位置信息或无网络，系统将自动把他设置为下线状态，0不生效！</span>
                                    </div>
                                </div>

						    <#assign autopaidan="false"/>
						    <@daijia><#assign autopaidan="true"/></@daijia>
						    <@freight><#assign autopaidan="true"/></@freight>
						    <@pao><#assign autopaidan="true"/></@pao>
                                <hr/>
                                <h4>系统自动派单</h4>
						    <@daijia>
                                <#if autopaidan=="true">
							    <div class="form-group">
                                    <label class="col-sm-3 control-label">代驾自动派单:</label>
                                    <div class="col-sm-9">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                             data-off-label="关闭">
                                            <input type="checkbox" id="autoPaidan" name="autoPaidan"
                                                   <#if setting.autoPaidan>checked</#if> />
                                        </div>
                                        <span class="help-block">是否开启代驾自动派单。</span>
                                    </div>
                                </div>
                                </#if>
                            </@daijia>
					        <@zhuan>
						    <div class="form-group">
                                <label class="col-sm-3 control-label">专车自动派单:</label>
                                <div class="col-sm-9">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                         data-off-label="关闭">
                                        <input type="checkbox" id="autoPaidanZhuanche" name="autoPaidanZhuanche"
                                               <#if setting.autoPaidanZhuanche>checked</#if> />
                                    </div>
                                    <span class="help-block">是否开启专车自动派单。</span>
                                </div>
                            </div>
                            </@zhuan>
						    <@zhuanxian>
						    <div class="form-group">
                                <label class="col-sm-3 control-label">快车自动派单:</label>
                                <div class="col-sm-9">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                         data-off-label="关闭">
                                        <input type="checkbox" id="autoPaidanZhuanxian" name="autoPaidanZhuanxian"
                                               <#if setting.autoPaidanZhuanxian>checked</#if> />
                                    </div>
                                    <span class="help-block">是否开启快车自动派单。</span>
                                </div>
                            </div>
                            </@zhuanxian>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">第一阶段:</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input class="form-control" name="autoPaidanKm1" type="number" min="1"
                                                   value="${setting.autoPaidanKm1?if_exists}"/>
                                            <span class="input-group-addon">公里范围内，隔</span>
                                            <input class="form-control" name="autoPaidanTime1" type="number" min="0"
                                                   value="${setting.autoPaidanTime1?if_exists}"/>
                                            <span class="input-group-addon">秒后派单给服务人员</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">第二阶段:</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input class="form-control" name="autoPaidanKm2" type="number" min="1"
                                                   value="${setting.autoPaidanKm2?if_exists}"/>
                                            <span class="input-group-addon">公里范围内，隔</span>
                                            <input class="form-control" name="autoPaidanTime2" type="number" min="1"
                                                   value="${setting.autoPaidanTime2?if_exists}"/>
                                            <span class="input-group-addon">秒后派单给服务人员</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">第三阶段:</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input class="form-control" name="autoPaidanKm3" type="number" min="1"
                                                   value="${setting.autoPaidanKm3?if_exists}"/>
                                            <span class="input-group-addon">公里范围内，隔</span>
                                            <input class="form-control" name="autoPaidanTime3" type="number" min="1"
                                                   value="${setting.autoPaidanTime3?if_exists}"/>
                                            <span class="input-group-addon">秒后派单给服务人员</span>
                                        </div>
                                    </div>
                                </div>

                                <hr/>
                                <h4>抢单设置</h4>
						    <@daijia>
                                <#if autopaidan=="true">
							    <div class="form-group">
                                    <label class="col-sm-3 control-label">代驾抢单:</label>
                                    <div class="col-sm-9">
                                        <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                             data-off-label="关闭">
                                            <input type="checkbox" id="allowRushOrder" name="allowRushOrder"
                                                   <#if setting.allowRushOrder>checked</#if> />
                                        </div>
                                        <span class="help-block">是否允许服务人员通过手机App抢代驾订单。</span>
                                    </div>
                                </div>
                                </#if>
                            </@daijia>
						    <@zhuan>
						    <div class="form-group">
                                <label class="col-sm-3 control-label">专车抢单:</label>
                                <div class="col-sm-9">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                         data-off-label="关闭">
                                        <input type="checkbox" id="allowRushOrderZhuanche" name="allowRushOrderZhuanche"
                                               <#if setting.allowRushOrderZhuanche>checked</#if> />
                                    </div>
                                    <span class="help-block">是否允许服务人员通过手机App抢专车订单。</span>
                                </div>
                            </div>
                            </@zhuan>
						    
						    <@zhuanxian>
						    <div class="form-group">
                                <label class="col-sm-3 control-label">快车抢单:</label>
                                <div class="col-sm-9">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                         data-off-label="关闭">
                                        <input type="checkbox" id="allowRushOrderZhuanxian"
                                               name="allowRushOrderZhuanxian"
                                               <#if setting.allowRushOrderZhuanxian>checked</#if> />
                                    </div>
                                    <span class="help-block">是否允许服务人员通过手机App抢快车订单。</span>
                                </div>
                            </div>
                            </@zhuanxian>
						    <@pao>
							 <div class="form-group">
                                 <label class="col-sm-3 control-label">是否开启跑腿订单池:</label>
                                 <div class="col-sm-9">
                                     <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                          data-off-label="关闭">
                                         <input type="checkbox" id="errandOrderPool" name="errandOrderPool"
                                                <#if setting.errandOrderPool>checked</#if> />
                                     </div>
                                     <span class="help-block">是否允许服务人员通过订单池抢跑腿订单。</span>
                                 </div>
                             </div>
						    <div class="form-group">
                                <label class="col-sm-3 control-label">跑腿抢单:</label>
                                <div class="col-sm-9">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                         data-off-label="关闭">
                                        <input type="checkbox" id="allowRushOrderErrand" name="allowRushOrderErrand"
                                               <#if setting.allowRushOrderErrand>checked</#if> />
                                    </div>
                                    <span class="help-block">是否允许服务人员通过手机App抢跑腿订单。</span>
                                </div>
                            </div>
                            </@pao>
						    <@freight>
						    <div class="form-group">
                                <label class="col-sm-3 control-label">货运抢单:</label>
                                <div class="col-sm-9">
                                    <div class="switch" data-on="primary" data-off="info" data-on-label="开启"
                                         data-off-label="关闭">
                                        <input type="checkbox" id="allowRushOrderFreight" name="allowRushOrderFreight"
                                               <#if setting.allowRushOrderFreight>checked</#if> />
                                    </div>
                                    <span class="help-block">是否允许服务人员通过手机App抢货运订单。</span>
                                </div>
                            </div>
                            </@freight>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">第一阶段:</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input class="form-control" name="rushOrderKm1" type="text" min="1"
                                                   value="${setting.rushOrderKm1?if_exists}"/>
                                            <span class="input-group-addon">公里范围内，隔</span>
                                            <input class="form-control" name="rushOrderTime1" type="number" min="0"
                                                   value="${setting.rushOrderTime1?if_exists}"/>
                                            <span class="input-group-addon">秒后推送给服务人员</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">第二阶段:</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input class="form-control" name="rushOrderKm2" type="number" min="1"
                                                   value="${setting.rushOrderKm2?if_exists}"/>
                                            <span class="input-group-addon">公里范围内，隔</span>
                                            <input class="form-control" name="rushOrderTime2" type="number" min="0"
                                                   value="${setting.rushOrderTime2?if_exists}"/>
                                            <span class="input-group-addon">秒后推送给服务人员</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">第三阶段:</label>
                                    <div class="col-sm-5">
                                        <div class="input-group">
                                            <input class="form-control" name="rushOrderKm3" type="number" min="1"
                                                   value="${setting.rushOrderKm3?if_exists}"/>
                                            <span class="input-group-addon">公里范围内，隔</span>
                                            <input class="form-control" name="rushOrderTime3" type="number" min="0"
                                                   value="${setting.rushOrderTime3?if_exists}"/>
                                            <span class="input-group-addon">秒后推送给服务人员</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" id="tab7">
                        <div class="panel panel-default margin-top">
                            <div class="panel-heading">推送设置</div>
                            <div class="panel-body">
                                <h5><font color="red">注：请勿修改以下配置</font></h5>
                                <hr/>
                                <h3>个推</h3>
                                <hr/>
                                <h4>通用版服务人员端</h4>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppID：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiAppIDGeneral"
                                               value="${setting.getuiAppIDGeneral?if_exists}">
                                        <span class="help-block">AppID</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppKey：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiAppKeyGeneral"
                                               value="${setting.getuiAppKeyGeneral?if_exists}">
                                        <span class="help-block">AppKey</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Master：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiMasterGeneral"
                                               value="${setting.getuiMasterGeneral?if_exists}">
                                        <span class="help-block">Master</span>
                                    </div>
                                </div>
                                <hr/>
                                <h4>服务人员端</h4>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppID：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiAppID"
                                               value="${setting.getuiAppID?if_exists}">
                                        <span class="help-block">AppID</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppKey：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiAppKey"
                                               value="${setting.getuiAppKey?if_exists}">
                                        <span class="help-block">AppKey</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Master：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiMaster"
                                               value="${setting.getuiMaster?if_exists}">
                                        <span class="help-block">Master</span>
                                    </div>
                                </div>
                                <hr/>
                                <h4>客户端</h4>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppID：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiMemberAppID"
                                               value="${setting.getuiMemberAppID?if_exists}">
                                        <span class="help-block">AppID</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppKey：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiMemberAppKey"
                                               value="${setting.getuiMemberAppKey?if_exists}">
                                        <span class="help-block">AppKey</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">Master：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="getuiMemberMaster"
                                               value="${setting.getuiMemberMaster?if_exists}">
                                        <span class="help-block">Master</span>
                                    </div>
                                </div>
                                <hr/>
                                <h3>极光</h3>
                                <hr/>
                                <h4>通用版服务人员端</h4>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppKey：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="jiguangEmployAppKeyGeneral"
                                               value="${setting.jiguangEmployAppKeyGeneral?if_exists}">
                                        <span class="help-block">AppKey</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">MasterSecret：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="jiguangEmployMasterSecretGeneral"
                                               value="${setting.jiguangEmployMasterSecretGeneral?if_exists}">
                                        <span class="help-block">MasterSecret</span>
                                    </div>
                                </div>
                                <hr/>
                                <h4>服务人员端</h4>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppKey：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="jiguangEmployAppKey"
                                               value="${setting.jiguangEmployAppKey?if_exists}">
                                        <span class="help-block">AppKey</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">MasterSecret：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="jiguangEmployMasterSecret"
                                               value="${setting.jiguangEmployMasterSecret?if_exists}">
                                        <span class="help-block">MasterSecret</span>
                                    </div>
                                </div>
                                <hr/>
                                <h4>客户端</h4>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">AppKey：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="jiguangPassengerAppKey"
                                               value="${setting.jiguangPassengerAppKey?if_exists}">
                                        <span class="help-block">AppKey</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">MasterSecret：</label>
                                    <div class="col-sm-5">
                                        <input type="text" class="form-control" name="jiguangPassengerMasterSecret"
                                               value="${setting.jiguangPassengerMasterSecret?if_exists}">
                                        <span class="help-block">MasterSecret</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="tab-pane" id="tab8">
                        <div class="panel panel-default margin-top">
                            <div class="panel-heading">安全设置</div>
                            <div class="panel-body">
                                <h4>有害信息屏蔽</h4>
                                <hr/>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">过滤字段：</label>
                                    <div class="col-sm-5">
                                        <textarea rows="13" cols="90" id="filterStr"
                                                  name="filterStr">${setting.filterStr?if_exists}</textarea>
                                        <span class="help-block">填写需要过滤的字段，以英文逗号","分隔。</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="form-group">
                    <input type="submit" class="btn btn-primary center-block" value="保存">
                </div>
            </form>
        </div>

    </div>
</div>
</@override>
<@override name="footer">
<script src="${ctx}/assets/js/bootstrap-switch.min.js"></script>
<script src="${ctx}/assets/kindeditor/kindeditor-all-min.js"></script>
<script src="${ctx}/assets/kindeditor/lang/zh_CN.js"></script>
<script src="${ctx}/assets/js/ajaxfileupload.js"></script>
<script type="text/javascript">
        <#if saveSuccess??>
			$.scojs_message("修改成功", $.scojs_message.TYPE_OK);
        </#if>
    function startClike() {
        var start = $("input[name='startQuota']").val();
        var end = $("input[name='endQuota']").val();
        var moeny = $("input[name='moenyBase']").val();

        if (start != "" && end != "" && moeny != "") {

            start = parseInt(start);
            end = parseInt(end);
            moeny = parseInt(moeny);

            var div = $("#divStartQuota");
            var bt = $("input[value='保存']");
            if (start % moeny != 0) {
                var error = $("<span style='color:red' id='error'>最小提现金额必须为金额基数的整倍数！</span>");
                div.append(error);
                bt.css("display", "none");
            } else {
                $("#error").remove();
                $("#error2").remove();
                bt.show();
            }

            if (start > end) {
                $("#error2").remove();
                var success = $("<span style='color:red' id='error2'>最大提现金额必须大于最小提现金额！</span>");
                div.append(success);
            } else {
                $("#error").remove();
                $("#error2").remove();
                bt.show();
            }

        }

    }

    function endClike() {
        var start = $("input[name='startQuota']").val();
        var end = $("input[name='endQuota']").val();
        var moeny = $("input[name='moenyBase']").val();

        if (start != "" && end != "" && moeny != "") {

            start = parseInt(start);
            end = parseInt(end);
            moeny = parseInt(moeny);

            var div = $("#divStartQuota");
            var bt = $("input[value='保存']");
            if (end % moeny != 0) {
                $("#error3").remove();
                var error = $("<span style='color:red' id='error2'>最大提现金额必须为金额基数的整倍数！</span>");
                div.append(error);
                bt.css("display", "none");
            } else if (end < start) {
                $("#error2").remove();
                var success = $("<span style='color:red' id='error3'>最大提现金额必须大于最小提现金额！</span>");
                div.append(success);
            } else {
                $("#error2").remove();
                $("#error3").remove();
                bt.show();
            }

        }

    }

    $(document).ready(function () {


        $("#submit_form").submit(function () {

				<@zhifu>
				var payCash1 = parseInt($("#payCash1").val());
				var payCash2 = parseInt($("#payCash2").val());
				var payCash3 = parseInt($("#payCash3").val());

				if (payCash2 <= payCash1) {
                    $.scojs_message("金额2必须大于金额1", $.scojs_message.TYPE_ERROR);
                    $("#tab4click").click();
                    $("#payCash2").focus();
                    return false;
                }

				if (payCash3 <= payCash2) {
                    $.scojs_message("金额3必须大于金额2", $.scojs_message.TYPE_ERROR);
                    $("#tab4click").click();
                    $("#payCash3").focus();
                    return false;
                }
                </@zhifu>

            if ($("#autoPaidan").is(':checked') && $("#allowRushOrder").is(':checked')) {
                $.scojs_message("系统自动派单和是否允许抢单只能选择开启一项", $.scojs_message.TYPE_ERROR);
                $("#tab5click").click();
                return false;
            }

            if ($("#autoPaidanZhuanche").is(':checked') && $("#allowRushOrderZhuanche").is(':checked')) {
                $.scojs_message("专车自动派单和专车抢单只能选择开启一项", $.scojs_message.TYPE_ERROR);
                $("#tab5click").click();
                return false;
            }

            if ($("#autoPaidanZhuanxian").is(':checked') && $("#allowRushOrderZhuanxian").is(':checked')) {
                $.scojs_message("快车自动派单和快车抢单只能选择开启一项", $.scojs_message.TYPE_ERROR);
                $("#tab5click").click();
                return false;
            }
            if ($("#startQuota").val() > $("#endQuota").val()) {
                $.scojs_message("提现金额基数最小值不能大于最大值", $.scojs_message.TYPE_ERROR);
                return false;
            }

            if (!$("#webUrl").val().trim()) {
                $.scojs_message("请输入系统网址", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }
            if (!$("#infoFeeErrand").val().trim()) {
                $.scojs_message("请输入保险费/信息费扣取金额(跑腿)", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }
            if (!$("#infoFeeCityline").val().trim()) {
                $.scojs_message("请输入保险费/信息费扣取金额(快车)", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }
            if (!$("#infoFeeZhuan").val().trim()) {
                $.scojs_message("请输入保险费/信息费扣取金额(专车)", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }

            if (!$("#revokeTime").val().trim()) {
                $.scojs_message("请输入自动收回时间", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }
            if (!$("#autoCancelOrderTime").val().trim()) {
                $.scojs_message("请输入自动消单时间", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }
            if (!$("#nearDriversKm2").val().trim()) {
                $.scojs_message("请输入服务人员端附近服务人员距离", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#nearDriversAmount2").val().trim()) {
                $.scojs_message("请输入服务人员端附近服务人员人数", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#nearPaotuiOrdersKm").val().trim()) {
                $.scojs_message("请输入服务人员端附近跑腿订单距离", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#nearDriversKm").val().trim()) {
                $.scojs_message("请输入用户端附近服务人员距离", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#nearDriversAmount").val().trim()) {
                $.scojs_message("请输入用户端附近服务人员人数", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#khurl").val().trim()) {
                $.scojs_message("请输入客户端下载地址", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#sjurl").val().trim()) {
                $.scojs_message("请输入司机端下载地址", $.scojs_message.TYPE_ERROR);
                $("#tab6click").click();
                return false;
            }
            if (!$("#paidanKm").val().trim()) {
                $.scojs_message("请输入推荐服务人员距离", $.scojs_message.TYPE_ERROR);
                $("#tab5click").click();
                return false;
            }
            if (!$("#bookTimeZhuanxian").val().trim()) {
                $.scojs_message("请输入预约订单时间(快车)", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }
            if (!$("#zhuanXianAutoCancelOrderTime").val().trim()) {
                $.scojs_message("请输入自动销单时间(快车)", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }  if (!$("#kuaicheAutoCancelOrderTime").val().trim()) {
                $.scojs_message("请输入自动销单时间(专车)", $.scojs_message.TYPE_ERROR);
                $("#tab1click").click();
                return false;
            }

            return true;
        });

        KindEditor.ready(function (K) {
            K.create('#businessContent', {
                filterMode: false,
                uploadJson: '${ctx}/common/kindeditor/fileupload',
                allowUpload: true,
                fileManagerJson: '${ctx}/common/kindeditor/filemanager',
                allowFileManager: true,
                height: '500',
                width: '863',
                resizeType: 0,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                    });
                },
                afterBlur: function () {
                    this.sync();
                }
            });
        });

        $("#uploadBtn").click(function () {
            $("#uploadFile").click();
        });
        $(document).on('change', '#uploadFile', function () {
            if ($.trim($(this).val())) {
                $.ajaxFileUpload({
                    url: '${ctx}/common/uploadFile',
                    secureuri: false,
                    fileElementId: 'uploadFile',
                    dataType: 'json',
                    success: function (result) {
                        if (result.success) {
                            $.scojs_message("上传成功", $.scojs_message.TYPE_OK);
                            $("#acpsdkSignCertPath").val(result.url);
                        } else {
                            $.scojs_message(result.msg, $.scojs_message.TYPE_ERROR);
                        }
                    }
                });
            }
        });
        $("#uploadBtn2").click(function () {
            $("#uploadFile2").click();
        });
        $(document).on('change', '#uploadFile2', function () {
            if ($.trim($(this).val())) {
                $.ajaxFileUpload({
                    url: '${ctx}/common/uploadFile',
                    secureuri: false,
                    fileElementId: 'uploadFile2',
                    dataType: 'json',
                    success: function (result) {
                        if (result.success) {
                            $.scojs_message("上传成功", $.scojs_message.TYPE_OK);
                            $("#acpProdEnc").val(result.url);
                        } else {
                            $.scojs_message(result.msg, $.scojs_message.TYPE_ERROR);
                        }
                    }
                });
            }
        });
        $("#uploadBtn3").click(function () {
            $("#uploadFile3").click();
        });
        $(document).on('change', '#uploadFile3', function () {
            if ($.trim($(this).val())) {
                $.ajaxFileUpload({
                    url: '${ctx}/common/uploadFile',
                    secureuri: false,
                    fileElementId: 'uploadFile3',
                    dataType: 'json',
                    success: function (result) {
                        if (result.success) {
                            $.scojs_message("上传成功", $.scojs_message.TYPE_OK);
                            $("#acpProdMiddle").val(result.url);
                        } else {
                            $.scojs_message(result.msg, $.scojs_message.TYPE_ERROR);
                        }
                    }
                });
            }
        });
        $("#uploadBtn4").click(function () {
            $("#uploadFile4").click();
        });
        $(document).on('change', '#uploadFile4', function () {
            if ($.trim($(this).val())) {
                $.ajaxFileUpload({
                    url: '${ctx}/common/uploadFile',
                    secureuri: false,
                    fileElementId: 'uploadFile4',
                    dataType: 'json',
                    success: function (result) {
                        if (result.success) {
                            $.scojs_message("上传成功", $.scojs_message.TYPE_OK);
                            $("#acpProdRoot").val(result.url);
                        } else {
                            $.scojs_message(result.msg, $.scojs_message.TYPE_ERROR);
                        }
                    }
                });
            }
        });

    });
</script>
</@override>
<@extends name="../layout.ftl"/>
